home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9985 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newshost.cyberramp.net!news
  2. From: sinan@cyberramp.net (John Noland)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: CONVERTING INTEGER TO ASCII??????
  5. Date: 14 Mar 1996 21:38:50 GMT
  6. Organization: Prose Software
  7. Message-ID: <4ia3lb$i46@newshost.cyberramp.net>
  8. References: <4i17r9$2kn@maltese.eag.unisysgsg.com> <4i1cvg$1cg@solutions.solon.com>
  9. NNTP-Posting-Host: ramp3-4.cyberramp.net
  10. X-Newsreader: WinVN 0.99.5
  11.  
  12. In article <4i1cvg$1cg@solutions.solon.com>, seebs@solutions.solon.com says...
  13.  
  14. >Can anyone tell me why it is that dozens of people every year post this 
  15. >exact same question, and *none* of them have thought about sprintf?
  16.  
  17. Is this one them there 'torical questions?!?
  18.  
  19. Haven't you ever overlooked the obvious, Peter? As a young(er) programmer, I
  20. remember that I used to write these crazy conversion routines for everything.
  21. One day, another programmer was looking at my code and he said, "Why don't
  22. you just use sprintf here?". I was floored. That hadn't even crossed
  23. my mind. sprintf. What a cool function. I was so busy being clever, I 
  24. overlooked the obvious. This was many years ago, but I still remember it and
  25. I still tend towards trying to be clever rather than obvious. Hmm, there's a
  26. lesson in there for me, somewhere. I just can't quite put my finger on it...
  27.  
  28. - John
  29.  
  30.